package com.sgzn.sgpay.model.request;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by xxjs-gd-llf
 * DATETIME:2018/4/6 14:23
 * Description: 设备更新请求
 */
@ToString(callSuper = true)
@Data
public class SgsDeviceUpdateTcpRequest extends SgsBaseRequest{

    /**
     *设备ID
     */
    @NotBlank(message = "设备ID不能为空")
    private  String deviceId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 设备类型
     */
    @Pattern(regexp = "01|02",message = "设备类型格式错误")
    private String deviceType;

    /**
     * 设备状态
     */
    @Pattern(regexp = "01|02",message = "设备状态格式错误")
    private String state;

    /**
     * 场地编号
     */
    private String siteNum;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 单价（币/次）
     */
    private String price;
}
